package com.easyseata.api.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.easyseata.service.impl.TccTransactionService;

@RestController
public class TccTransactionApiImpl {
	
	
	
	@Autowired
	TccTransactionService tccService;
	
	
	
	@GetMapping("/tcc/commit")
	public void tcc() {
		
		tccService.doTransactionCommit();
		
		
	}
	
	@GetMapping("/tcc/rollback")
	public void rollback() {
		
		tccService.doTransactionRollback();
		
		
	}
	

}
